package com.zcxk.enums;

public enum ErrorCodeEnum {
    OK(0, "执行成功!!"),
    SYSTEM_ERROR(100001, "系统错误,请稍后重试!!"),
    HTTP_METHOD_NOT_SUPPORT(100002, "请求方式不正确,请核查后请求!!"),
    REQUEST_NO_HANDLER_FOUND(100003, "请求资源不存在,请确认相关资源!!"),
    REQUEST_METHOD_NOT_SUPPORTED(100004, "请求方式不正确,请核查后请求!!"),
    REQUEST_MEDIATYPE_NOT_SUPPORTED(10005, "请求类型不支持,请核查后请求!!"),
    REQUEST_FILE_IS_EMPTY(100006, "请选择文件后提交!!"),
    FILE_IS_EMPTY(100007, "文件为空!!"),
    HTTP_MEDIA_TYPE_NOT_SUPPORT(100008, "请求类型不支持,请核查后请求!!"),
    RESOURCE_NOT_FOUND(100009, "请求资源不存在,请确认相关资源!!"),
    PARAM_ERROR(100010, "参数错误,请核查后请求!!"),
    PARAM_EMPTY(100011, "参数为空,请核查后请求!!"),
    PARAM_ILLEGAL(100012, "参数不合法,请核查后再试!!"),
    DELETE_FAIL_ILLEGAL(100013, "删除失败,请核查后再试!!"),
    SAVE_FAIL_DATA_DUPLICATE(100014, "添加失败,请忽重复添加!!"),
    USER_IS_NOT_LOGIN(100015, "用户未登陆,请登陆后再试!!"),
    USER_NOT_FIND(100016, "用户未找到!!"),
    AUTH_FAIL(100017, "签名验证失败!!"),
    GROUP_NOT_FOUND(100018, "广告组不存在!!"),
    USERNAME_EXISTS(100019, "用户名已使用!!"),
    REGISTER_FAIL(100020, "注册失败!!"),

    VERIFICATION_CODE_LIMIT(100021, "今日发送短信验证码次数已达到上限"),
    SEND_SMS_FAIL(100022, "发送短信失败"),

    ;
    private int code;
    private String message;

    ErrorCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
